# -*- coding: utf-8 -*-

# Copyright (c) Huoty - All rights reserved
# Author: Huoty <sudohuoty@gmail.com>
# CreateTime: 2017-01-07 18:50:29

from __future__ import absolute_import

try:
    from UserList import UserList
except ImportError:
    from collections import UserList


class List(UserList):
    """Extended list"""

    def get(self, index, default=None):
        try:
            return self.__getitem__(index)
        except IndexError:
            return default
